﻿<phone:PhoneApplicationPage 
    x:Class="SlXnaApp1.GamePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
   
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False">
    
    <!--No XAML content is required as the page is rendered entirely with the XNA Framework-->
    <Grid Width="480" Height="800"  Name="SilverLaoyuot" Background="Transparent">
        <StackPanel Name="LayoutRoot" Visibility="Visible"  VerticalAlignment="Center" Width="460">
            <StackPanel Orientation="Horizontal">
                <TextBlock Text="Score:"/>
                <TextBlock Name="scoreTxt" Text="{Binding UserScore, Mode=TwoWay}"/>
            </StackPanel>
            <TextBlock Text="Enter u name:"/>
            <TextBox Text="{Binding UserName, Mode=TwoWay}"/>
            <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
                <Button Click="ButtonClickGoBack"  Command="{Binding SaveCommand}" toolkit:TiltEffect.IsTiltEnabled="True" Width="240" Content="Save"/>
                <Button Click="ButtonClickGoBack" toolkit:TiltEffect.IsTiltEnabled="True" Width="240" Content="Cancel"/>
            </StackPanel>            
        </StackPanel>
    </Grid>
</phone:PhoneApplicationPage>
